<?php
define('UserPhotoPath', 'posters/');
//var_dump($data['vidoes']);
?>

<html>
<head>
    <meta charset="UTF-8">
    <title>edtivideo</title>
    <link href="asset/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="row col-lg-9">
        <ol class="breadcrumb">
                <li><a href="#">Home</a></li>
                <li class="active"><a href="admin.php?c=video&m=listvideos">Inter</a></li>
                <li class="active"><a href="admin.php?c=user&m=listusers">Company</a></li>

        </ol>
<div class="row col-lg-9">
    <div class="row col-lg-10 col-lg-offset-1">
        <form action="admin.php?c=video&m=updvideo" method=POST enctype="multipart/form-data">
            <input type="hidden" name="vid" value=<?php  echo $data['videos']['vid'];  ?>>
            <div class="form-group">
                <label for="videoname">姓名：</label>
                <input class="form-control" type="text" name="vname" id="videoname" placeholder="不超过五个字" value=<?php echo $data['videos']['videoname']; ?>>
            </div>
            <div class="form-group">
                <label>专业</label>
                <select name="videodegree" class="form-control" >
                    <option ><?php
                        echo $data['tname']['tid'].$data['tname']['typename']?></option>
                    <?php
                    foreach($data['types'] as $row){
                        echo"<option>".$row['tid'].$row['typename']."</option>";
                    }
                    ?>
                </select>
            </div>       
            <!--性别选择-->
            <div class="form-group">
                    <label >性别：</label>
                    <div class="radio">
                        <label>
                            <input type="radio" name="gender" id="optionsRadios1"
                                   value="0" <?php
                            if(!$data['videos']['gender']) echo 'checked';  ?>> 男
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio" name="gender" id="optionsRadios2"
                                   value="1" <?php
                            if($data['videos']['gender']) echo 'checked';  ?>>
                            女
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <!--生日输入-->
                    <label>生日：</label>
                    <input class="form-control" type="date" name="birthdate" value=<?php echo $data['vidoes']['birthdate'];  ?>>
                </div>
                <div class="form-group">
                    <!--生日输入-->
                    <label>毕业于：</label>
                    <input class="form-control" type="date" name="graduatedate" value=<?php echo $data['vidoes']['graduatedate'];  ?>>
                </div>
                <div class="form-group">

                <label>学校：</label>

                <textarea class="form-control" name="school"><?php  echo $data['videos']['school'];  ?></textarea>

                </div>  
                <div class="form-group">
                    <!--爱好选择-->
                    <label>爱好：</label>

                    <div class="checkbox">
                        <label><input name="hobby[]" type="checkbox" value="旅游"<?php  if(strstr($data['videos']['hobby'],'旅游')) echo 'checked';  ?>>旅游</label>
                    </div>
                    <div class="checkbox">
                        <label><input name="hobby[]" type="checkbox" value="登山"<?php  if(strstr($data['videos']['hobby'],'登山')) echo 'checked';  ?>>登山</label>
                    </div>
                    <div class="checkbox">
                        <label><input name="hobby[]" type="checkbox" value="游泳"<?php  if(strstr($data['videos']['hobby'],'游泳')) echo 'checked';  ?>>游泳</label>
                    </div>
                </div>        
                
            <div class="form-group">

                <label>介绍</label>

                <textarea class="form-control" name="vintro"><?php  echo $data['videos']['intro'];  ?></textarea>

            </div>

            <div class="form-group">
                <label >头像</label>
                <input class="form-control" type="file" name="img" >
                原头像：<img  src="<?php echo UserPhotoPath.$data['videos']['pic']; ?>"
                          width="80px" height="80px">
            </div>
            <div class="form-group">

                <input class="btn btn-primary" type="submit" name="submit" value="提交">
                <input class="btn btn-default" type="reset" name="reset" value="重置">
            </div>
</div>

        </form>
    </div>
    </body>
    </html>